package service;

import pojo.Department;
import java.util.List;

public interface DepartmentService {
    List<Department> findAll();
    Department findById(Integer id);
    List<Department> findByLevel(Integer level);
    List<Department> findByParentId(Integer parentId);
    boolean save(Department department);
    boolean update(Department department);
    boolean delete(Integer id);

    int updateDepartment(Department department);

    int addDepartment(Department department);

    int deleteDepartment(int departmentId);
}